package org.blogwu.learn.multithread.chapter2.demo3;

public class Main {

    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(new SimpleWN(), "t1");
        Thread t2 = new Thread(new SimpleWN(), "t2");
        Thread t3 = new Thread(new SimpleWN(), "t3");

        {
            t2.start();
            t1.start();
            t3.start();
        }
        System.out.println("start ok");
        Thread.sleep(1000);
        synchronized (SimpleWN.o1) {
            SimpleWN.o1.notify();
            SimpleWN.o1.notifyAll();
            SimpleWN.o1.notifyAll();
        }

    }
}
